package com.jt.assistant.adapter

import android.annotation.SuppressLint
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import coil.load
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jt.assistant.R
import com.jt.assistant.base.BaseApplication
import com.jt.assistant.bean.Car
import com.jt.assistant.bean.CarReceiveBean
import com.jt.assistant.bean.Goods

class ReturnSkuAdapter(mData: MutableList<Goods>) :
    BaseQuickAdapter<Goods, BaseViewHolder>(
        R.layout.item_returu_sku, mData
    ) {

    @SuppressLint("SetTextI18n")
    override fun convert(holder: BaseViewHolder, item: Goods) {
        val sku = holder.getView<TextView>(R.id.tv_sku)
        val code69 = holder.getView<TextView>(R.id.tv_69code)
        val num = holder.getView<TextView>(R.id.tv_num)

        sku.text = item.sku
        code69.text = item.barcode
        num.text = "${item.packedNum}/${item.totalNum}"
    }


}